package com.jar.exercise.设计模式.代理.静态代理;

/**
 * @author ZhangShengHao
 * @className ClothFactory
 * @description TODO
 * @date 2020/1/26 19:47
 */
public interface ClothFactory {
	void produceCloth();
}

class ProxyClothFactory implements ClothFactory {
	private ClothFactory clothFactory;

	public ProxyClothFactory(ClothFactory clothFactory) {
		this.clothFactory = clothFactory;
	}

	@Override
	public void produceCloth() {
		System.out.println("代理工厂做的一些工作");
		clothFactory.produceCloth();
		System.out.println("后续工作");
	}
}



